package org.csmzxy.class2334;

import java.util.Scanner;

public class Demo {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int num =scanner.nextInt();
        int bai = num / 100;
        int shi = (num % 100)/10;
        int ge = num % 10;
        if((int)Math.pow(bai,3) + (int)Math.pow(shi,3) +(int)Math.pow(ge,3) ==num){
            System.out.println("这是一个水仙花数");
        }else{
            System.out.println("这不是一个水仙花数");
    }
}
}